package com.youan.serve.service;

import com.youan.pangu.base.bean.ElementTree;
import com.youan.pangu.base.exception.BusinessException;
import com.youan.serve.dao.domain.Function;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author auto_code
 * @since 2020-03-04
 */
public interface IFunctionService extends IService<Function> {

    List<ElementTree> getFunctionsElementTree();

    List<ElementTree> getFunctionsElementTreeByUserRoles(List<String> roleIdList);

    Boolean validateFun(Function function) throws BusinessException;

}
